﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using DynaSpace.Menu;

namespace DynaSpace
{
	/// <summary>
	/// Plugin zajišťující vykreslování menu
	/// </summary>
	internal class MenuRendererComponent : DynaComponentBase
	{
		public MenuRendererComponent(DynaGame game)
			: base(game)
		{
		}

		protected override void LoadContent()
		{
			base.LoadContent();

			DrawOrder = 10;
		}

		public override void Update(GameTime gameTime)
		{
			base.Update(gameTime);

			Game.Menus.Update(gameTime);
		}

		public override void Draw(GameTime gameTime)
		{
			base.Draw(gameTime);

			Game.Menus.Draw(spriteBatch);
		}

	}
}
